/**
 * @author 李泽伟
 */
public class ThreadTest extends Thread {

    public ThreadTest() {
    }

    public ThreadTest(String name) {
        super(name);
    }

    @Override
    public void run() {
        int tem = 100;
        for (int i = 0; i < tem; i++) {
//            try {
//                sleep(1);
//            } catch (InterruptedException e) {
//                throw new RuntimeException(e);
//            }
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }
}
